home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / IBM VisualAge for Java Enterprise v4.0 Retail / ivj40 / setup / IDE.Cab / F83922_TreeFactoryTreeNotation.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-07-14  |  1.8 KB  |  46 lines

  1. package com.ibm.xml.parser.util;
  2.  
  3. import com.ibm.xml.parser.Child;
  4. import com.ibm.xml.parser.ExternalID;
  5. import com.ibm.xml.parser.TXNotation;
  6. import java.util.Enumeration;
  7. import javax.swing.tree.TreeNode;
  8.  
  9. public class TreeFactory$TreeNotation extends TXNotation implements TreeNode {
  10.    public TreeFactory$TreeNotation(String var1, ExternalID var2) {
  11.       super(var1, var2);
  12.    }
  13.  
  14.    public Enumeration children() {
  15.       return null;
  16.    }
  17.  
  18.    public boolean getAllowsChildren() {
  19.       return false;
  20.    }
  21.  
  22.    public TreeNode getChildAt(int var1) {
  23.       return null;
  24.    }
  25.  
  26.    public int getChildCount() {
  27.       return 0;
  28.    }
  29.  
  30.    public int getIndex(TreeNode var1) {
  31.       return -1;
  32.    }
  33.  
  34.    public TreeNode getParent() {
  35.       return (TreeNode)((Child)this).getParentNode();
  36.    }
  37.  
  38.    public boolean isLeaf() {
  39.       return true;
  40.    }
  41.  
  42.    public String toString() {
  43.       return ((TreeFactory)((Child)this).getFactory()).convertValueToText(this);
  44.    }
  45. }
  46.